# Contributor: Ryan Barnett <ryanbarnett3@gmail.com>
# Maintainer: Ryan Barnett <ryanbarnett3@gmail.com>
pkgname=squashfs-tools-ng
pkgver=1.1.3
pkgrel=0
pkgdesc="A new set of tools and libraries for working with SquashFS images"
url="https://infraroot.at/projects/squashfs-tools-ng/index.html"
arch="all"
license="GPL-3.0-or-later"
makedepends="automake libselinux-dev lz4-dev lzo-dev xz-dev zlib-dev zstd-dev"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="https://infraroot.at/pub/squashfs/squashfs-tools-ng-$pkgver.tar.gz
	0001-Fix-struct-offset-testing-in-ABI-test-case.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="7bd2c1f1f5b0443e34594b5899591bef03b50f10755d12062e38e09a831f791859460184e53e288d33fc7690d6d32b94e162afe2e0234b62e2dc2b977972cf5e  squashfs-tools-ng-1.1.3.tar.gz
9358ce93bb7ea6e8d9376548c4e32f271b7cc88adad845cd91c707cef30fa4442607621d4e0ac9b2ab8ab791ca90fa11516b99f47287c1af1cb53a33fc6dd887  0001-Fix-struct-offset-testing-in-ABI-test-case.patch"
